TempFreeMem
To find out the total amount of memory available for temporary allocation, use theTempFreeMem
function.
FUNCTION TempFreeMem: LongInt;DESCRIPTION
TheTempFreeMem
function returns the total amount of free temporary memory that you could allocate by callingTempNewHandle
. The returned value is the total number of free bytes. Because these bytes might be dispersed throughout memory, it is ordinarily not possible to allocate a single relocatable block of that size.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forTempFreeMem
are
Trap macro Selector _OSDispatch $0018 SPECIAL CONSIDERATIONS
Even thoughTempFreeMem
does not move or purge memory, you should not call it at interrupt time.